﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMSmanagement.IBaseService.PurchasingManagement.Dto
{
    public class ProcurementDto
    {
        public int Id { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        [StringLength(40)]
        public string ProcurementCode { get; set; } 
        /// <summary>
        /// 供应商编号
        /// </summary>
        [StringLength(40)]
        public string? SupplierCode { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        [StringLength(30)]
        public string SupplierName { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [StringLength(10)]
        public string? State { get; set; }
        /// <summary>
        /// 是否入账
        /// </summary>
        public bool? IsEntry { get; set; }
        /// <summary>
        /// 退货
        /// </summary>
        [StringLength(10)]
        public string? ReturnGood { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        [StringLength(40)]
        public string ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [StringLength(40)]
        public string ProductName { get; set; }

        /// <summary>
        /// 产品规格
        /// </summary>
        [StringLength(30)]
        public string ProductSpecification { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [StringLength(10)]
        public string Unit { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public double UnitPrice { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
    }
}
